(:: pragma bea:global-element-parameter parameter="$submitOrder1" element="ns1:SubmitOrder" location="../WSDLs/SubmitOrder.wsdl" ::)
(:: pragma bea:global-element-return element="ns0:queryWimaxDmObjectRequest" location="../xsd/wimax2.xsd" ::)

declare namespace ns1 = "http://www.example.org/SubmitOrder/";
declare namespace ns0 = "http://integration.clearwire.com/public/interfaces/OMADM/wimax.xsd";
declare namespace xf = "http://tempuri.org/ActivateNewCustomer/Transformation/test/";

declare function xf:test($submitOrder1 as element(ns1:SubmitOrder))
    as element(ns0:queryWimaxDmObjectRequest) {
        <ns0:queryWimaxDmObjectRequest>
            <ns0:serialNumber>{ data($submitOrder1/macID) }</ns0:serialNumber>
            <ns0:objectId>4</ns0:objectId>
        </ns0:queryWimaxDmObjectRequest>
};

declare variable $submitOrder1 as element(ns1:SubmitOrder) external;

xf:test($submitOrder1)